package com.erp.erp_entitys.Company;


import java.io.Serializable;

/**
 * @author 
 * 公司信息表
 */
 public class CompanyEntity implements Serializable {
     private Integer id;

    /**
     * 公司编码
     */
     private String code;

    /**
     * 公司名称
     */
     private String name;

    /**
     * 上级公司\部门
     */
     private String pid;

    /**
     * 英文名称
     */
     private String englishname;

    /**
     * 简称
     */
     private String abbreviation;

    /**
     * 地址
     */
     private String address;

    /**
     * 英文地址
     */
     private String englishaddress;

    /**
     * 邮编
     */
     private String postalcode;

    /**
     * 海关号
     */
     private String customsno;

    /**
     * 税务登记号
     */
     private String taxregistrationno;

    /**
     * FormA号
     */
     private String formano;

    /**
     * 产地证注册号（CertificateOfOriginRegistrationNo）
     */
     private String corno;

    /**
     * 法人
     */
     private String legalperson;

    /**
     * 邮件地址
     */
     private String mailiaddress;

    /**
     * 电话
     */
     private String tel;

    /**
     * 传真
     */
     private String fax;

    /**
     * 主页
     */
     private String homepage;

    /**
     * 报检登记号
     */
     private String newspapersw;

    /**
     * 公司性质
     */
     private String natureofcompany;

    /**
     * 经营范围
     */
     private String businessscope;

    /**
     * 中文logo
     */
     private String chinalogo;

    /**
     * 英文logo
     */
     private String enginshlogo;

    /**
     * 是否代理
     */
     private Integer isproxy;

    /**
     * 保险单号
     */
     private String policyno;

    /**
     * 是事顶级部门（1：是；0：不是）
     */
     private Integer topDepartment;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getEnglishname() {
        return englishname;
    }

    public void setEnglishname(String englishname) {
        this.englishname = englishname;
    }

    public String getAbbreviation() {
        return abbreviation;
    }

    public void setAbbreviation(String abbreviation) {
        this.abbreviation = abbreviation;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getEnglishaddress() {
        return englishaddress;
    }

    public void setEnglishaddress(String englishaddress) {
        this.englishaddress = englishaddress;
    }

    public String getPostalcode() {
        return postalcode;
    }

    public void setPostalcode(String postalcode) {
        this.postalcode = postalcode;
    }

    public String getCustomsno() {
        return customsno;
    }

    public void setCustomsno(String customsno) {
        this.customsno = customsno;
    }

    public String getTaxregistrationno() {
        return taxregistrationno;
    }

    public void setTaxregistrationno(String taxregistrationno) {
        this.taxregistrationno = taxregistrationno;
    }

    public String getFormano() {
        return formano;
    }

    public void setFormano(String formano) {
        this.formano = formano;
    }

    public String getCorno() {
        return corno;
    }

    public void setCorno(String corno) {
        this.corno = corno;
    }

    public String getLegalperson() {
        return legalperson;
    }

    public void setLegalperson(String legalperson) {
        this.legalperson = legalperson;
    }

    public String getMailiaddress() {
        return mailiaddress;
    }

    public void setMailiaddress(String mailiaddress) {
        this.mailiaddress = mailiaddress;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getFax() {
        return fax;
    }

    public void setFax(String fax) {
        this.fax = fax;
    }

    public String getHomepage() {
        return homepage;
    }

    public void setHomepage(String homepage) {
        this.homepage = homepage;
    }

    public String getNewspapersw() {
        return newspapersw;
    }

    public void setNewspapersw(String newspapersw) {
        this.newspapersw = newspapersw;
    }

    public String getNatureofcompany() {
        return natureofcompany;
    }

    public void setNatureofcompany(String natureofcompany) {
        this.natureofcompany = natureofcompany;
    }

    public String getBusinessscope() {
        return businessscope;
    }

    public void setBusinessscope(String businessscope) {
        this.businessscope = businessscope;
    }

    public String getChinalogo() {
        return chinalogo;
    }

    public void setChinalogo(String chinalogo) {
        this.chinalogo = chinalogo;
    }

    public String getEnginshlogo() {
        return enginshlogo;
    }

    public void setEnginshlogo(String enginshlogo) {
        this.enginshlogo = enginshlogo;
    }

    public Integer getIsproxy() {
        return isproxy;
    }

    public void setIsproxy(Integer isproxy) {
        this.isproxy = isproxy;
    }

    public String getPolicyno() {
        return policyno;
    }

    public void setPolicyno(String policyno) {
        this.policyno = policyno;
    }

    public Integer getTopDepartment() {
        return topDepartment;
    }

    public void setTopDepartment(Integer topDepartment) {
        this.topDepartment = topDepartment;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        CompanyEntity other = (CompanyEntity) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getCode() == null ? other.getCode() == null : this.getCode().equals(other.getCode()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getPid() == null ? other.getPid() == null : this.getPid().equals(other.getPid()))
            && (this.getEnglishname() == null ? other.getEnglishname() == null : this.getEnglishname().equals(other.getEnglishname()))
            && (this.getAbbreviation() == null ? other.getAbbreviation() == null : this.getAbbreviation().equals(other.getAbbreviation()))
            && (this.getAddress() == null ? other.getAddress() == null : this.getAddress().equals(other.getAddress()))
            && (this.getEnglishaddress() == null ? other.getEnglishaddress() == null : this.getEnglishaddress().equals(other.getEnglishaddress()))
            && (this.getPostalcode() == null ? other.getPostalcode() == null : this.getPostalcode().equals(other.getPostalcode()))
            && (this.getCustomsno() == null ? other.getCustomsno() == null : this.getCustomsno().equals(other.getCustomsno()))
            && (this.getTaxregistrationno() == null ? other.getTaxregistrationno() == null : this.getTaxregistrationno().equals(other.getTaxregistrationno()))
            && (this.getFormano() == null ? other.getFormano() == null : this.getFormano().equals(other.getFormano()))
            && (this.getCorno() == null ? other.getCorno() == null : this.getCorno().equals(other.getCorno()))
            && (this.getLegalperson() == null ? other.getLegalperson() == null : this.getLegalperson().equals(other.getLegalperson()))
            && (this.getMailiaddress() == null ? other.getMailiaddress() == null : this.getMailiaddress().equals(other.getMailiaddress()))
            && (this.getTel() == null ? other.getTel() == null : this.getTel().equals(other.getTel()))
            && (this.getFax() == null ? other.getFax() == null : this.getFax().equals(other.getFax()))
            && (this.getHomepage() == null ? other.getHomepage() == null : this.getHomepage().equals(other.getHomepage()))
            && (this.getNewspapersw() == null ? other.getNewspapersw() == null : this.getNewspapersw().equals(other.getNewspapersw()))
            && (this.getNatureofcompany() == null ? other.getNatureofcompany() == null : this.getNatureofcompany().equals(other.getNatureofcompany()))
            && (this.getBusinessscope() == null ? other.getBusinessscope() == null : this.getBusinessscope().equals(other.getBusinessscope()))
            && (this.getChinalogo() == null ? other.getChinalogo() == null : this.getChinalogo().equals(other.getChinalogo()))
            && (this.getEnginshlogo() == null ? other.getEnginshlogo() == null : this.getEnginshlogo().equals(other.getEnginshlogo()))
            && (this.getIsproxy() == null ? other.getIsproxy() == null : this.getIsproxy().equals(other.getIsproxy()))
            && (this.getPolicyno() == null ? other.getPolicyno() == null : this.getPolicyno().equals(other.getPolicyno()))
            && (this.getTopDepartment() == null ? other.getTopDepartment() == null : this.getTopDepartment().equals(other.getTopDepartment()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getCode() == null) ? 0 : getCode().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getPid() == null) ? 0 : getPid().hashCode());
        result = prime * result + ((getEnglishname() == null) ? 0 : getEnglishname().hashCode());
        result = prime * result + ((getAbbreviation() == null) ? 0 : getAbbreviation().hashCode());
        result = prime * result + ((getAddress() == null) ? 0 : getAddress().hashCode());
        result = prime * result + ((getEnglishaddress() == null) ? 0 : getEnglishaddress().hashCode());
        result = prime * result + ((getPostalcode() == null) ? 0 : getPostalcode().hashCode());
        result = prime * result + ((getCustomsno() == null) ? 0 : getCustomsno().hashCode());
        result = prime * result + ((getTaxregistrationno() == null) ? 0 : getTaxregistrationno().hashCode());
        result = prime * result + ((getFormano() == null) ? 0 : getFormano().hashCode());
        result = prime * result + ((getCorno() == null) ? 0 : getCorno().hashCode());
        result = prime * result + ((getLegalperson() == null) ? 0 : getLegalperson().hashCode());
        result = prime * result + ((getMailiaddress() == null) ? 0 : getMailiaddress().hashCode());
        result = prime * result + ((getTel() == null) ? 0 : getTel().hashCode());
        result = prime * result + ((getFax() == null) ? 0 : getFax().hashCode());
        result = prime * result + ((getHomepage() == null) ? 0 : getHomepage().hashCode());
        result = prime * result + ((getNewspapersw() == null) ? 0 : getNewspapersw().hashCode());
        result = prime * result + ((getNatureofcompany() == null) ? 0 : getNatureofcompany().hashCode());
        result = prime * result + ((getBusinessscope() == null) ? 0 : getBusinessscope().hashCode());
        result = prime * result + ((getChinalogo() == null) ? 0 : getChinalogo().hashCode());
        result = prime * result + ((getEnginshlogo() == null) ? 0 : getEnginshlogo().hashCode());
        result = prime * result + ((getIsproxy() == null) ? 0 : getIsproxy().hashCode());
        result = prime * result + ((getPolicyno() == null) ? 0 : getPolicyno().hashCode());
        result = prime * result + ((getTopDepartment() == null) ? 0 : getTopDepartment().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", code=").append(code);
        sb.append(", name=").append(name);
        sb.append(", pid=").append(pid);
        sb.append(", englishname=").append(englishname);
        sb.append(", abbreviation=").append(abbreviation);
        sb.append(", address=").append(address);
        sb.append(", englishaddress=").append(englishaddress);
        sb.append(", postalcode=").append(postalcode);
        sb.append(", customsno=").append(customsno);
        sb.append(", taxregistrationno=").append(taxregistrationno);
        sb.append(", formano=").append(formano);
        sb.append(", corno=").append(corno);
        sb.append(", legalperson=").append(legalperson);
        sb.append(", mailiaddress=").append(mailiaddress);
        sb.append(", tel=").append(tel);
        sb.append(", fax=").append(fax);
        sb.append(", homepage=").append(homepage);
        sb.append(", newspapersw=").append(newspapersw);
        sb.append(", natureofcompany=").append(natureofcompany);
        sb.append(", businessscope=").append(businessscope);
        sb.append(", chinalogo=").append(chinalogo);
        sb.append(", enginshlogo=").append(enginshlogo);
        sb.append(", isproxy=").append(isproxy);
        sb.append(", policyno=").append(policyno);
        sb.append(", topDepartment=").append(topDepartment);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}